var $j = jQuery.noConflict();

CLRANGE	= '0';
function cal_markup() {
	$j('#caltab tbody tr:odd').removeClass(); 
	$j('#caltab tbody tr:even').removeClass(); 
	$j('#caltab tbody tr:odd').addClass('odd');
	$j('#caltab tbody tr:even').addClass('even');
}

function get_cookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function lookup(inputString) {
	if(inputString.length == 0) {
		$j('#suggestions').hide();
	} else {
		$j.post("search.php", {queryString: ""+inputString+""}, function(data){
			if(data.length >0) {
				$j('#suggestions').show();
				$j('#autoSuggestionsList').html(data);
			}
		});
	}
}
function fill(thisValue) {
	$j('#inputString').val(thisValue);
	setTimeout("$j('#suggestions').hide();", 200);
}